﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.WindowsCE.Forms;
using Microsoft.WindowsMobile.Forms;

namespace SIAR_mobile
{
    public partial class Form1 : Form
    {
        InputPanel sip;
        
        public Form1()
        {
            InitializeComponent();
            sip = new InputPanel();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                Mesa form = new Mesa();
                form.setTitulo(int.Parse(numeromesa.Text));
                form.Show();
                numeromesa.Text = "";
            }
            catch (Exception ex)
            {
                MessageBox.Show("Informe um número de mesa!");
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ListaPedidos form = new ListaPedidos();
            form.Show();
            notification1.Text = "Nesse balãozinho será exibido o aerta de pedido liberado!";
            notification1.Visible = true;
        }

        private void numeromesa_GotFocus(object sender, EventArgs e)
        { 
            sip.Enabled = true;
        }

        private void numeromesa_LostFocus(object sender, EventArgs e)
        {
            sip.Enabled = false;
        }
    }
}